<template>
  <div class="title">
    <Icon type="ios-bookmark" color="#0e8694" size="16"/>
    <span>{{name}}</span>
    <Icon type="md-refresh-circle" size="16" color="#0e8694" v-if="show" @click="reset"/>
  </div>
</template>

<script>
  export default {
    name: 'vTitle',
    props: ['title', 'refresh'],
    data () {
      return {
        name: '',
        show: false
      }
    },
    methods: {
      reset: function () {

      }
    },
    created () {
      this.name = this.title
      this.show = this.refresh
    }
  }
</script>

<style scoped lang="scss">
  .title {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f2f5;

    span {
      font-weight: 600;
      font-size: 14px;
      color: #0e8694;
    }
  }
</style>
